<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTcmclassicsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('tcmclassics', function (Blueprint $table) {
            $table->increments('id');
            $table->string('module')->nullable()->comment('模块标识');
            $table->string('name')->nullable()->comment('模块名称');
			$table->string('images')->nullable()->comment('图片');
			$table->tinyInteger('sort')->default('0')->comment('排序');
			$table->tinyInteger('status')->default('0')->comment('状态');
			$table->string('url')->nullable()->comment('跳转链接');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('tcmclassics');
    }
}
